package com.jgp.sys.query;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/21
 */
public class DateRange<D extends Comparable> implements Range<D> {

    private D from;
    private D to;

    public DateRange(D from, D to) {
        this.from = from;
        this.to = to;
    }

    @Override
    public D getFrom() {
        return this.from;
    }

    @Override
    public D getTo() {
        return this.to;
    }
}
